/*
  Name: DeadProxyEventQueue.h
  Copyright: 
  Author: Carl Chatfield
  Date: 18/01/08 17:30
  Description: Event Queue for Client Event Handler
*/



#ifndef __DEADPROXYFRMEVENTQUEUE_h__
#define __DEADPROXYFRMEVENTQUEUE_h__

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
#else
	#include <wx/wxprec.h>
#endif

#include "DeadProxyClientEvent.h"

WX_DECLARE_OBJARRAY(ClientEvent, ArrayOfEvents);

class EventQueue
{
    private:
        ArrayOfEvents * Queue;
        wxMutex * mutex;
	public:
        void AddEvent(ClientEvent * evt);
        void InsertEvent(ClientEvent * evt);
        ClientEvent * GetEvent();
        int GetCount();
        EventQueue();
        virtual ~EventQueue();
};

#endif
